package org.example.rpc.client;


import org.example.rpc.common.IUserService;
import org.example.rpc.framework.proxy.RpcProxy;

public class Client {
    public static void main(String[] args) {
        RpcProxy rpcProxy = new RpcProxy();
        IUserService productService = (IUserService) rpcProxy.remoteCall("localhost", 10000, IUserService.class);
        System.out.println("productService = " + productService.getById(10));
    }
}


